/**
 * 
 * 
 * http://www.w3schools.com/js/js_htmldom.asp
 */

function validate(){
	
	// alert(document.childNodes[0]);
	var userName =document.getElementById("user_name").value;
	var password = document.getElementById("password").value;
	var error="";
	if(userName=="")
		error="\n User Name can not be empty";
	if(password=="")
		error= error + "\n Password can not be empty";
	
	if(error !=""){
		error= "Please correct the following errors"+ error;
		alert(error);
	}
	
	
	
}